import App from './App'
// app配置
export default class AppEnum{
    static map=new Map()
    static SETTING = new App("SETTING",'../assets/setting.png')
    static FOLDER_MANAGER = new App("FOLDER_MANAGER",'../assets/folder-manager.png')
    static nameToId(name){
        let app =  AppEnum[name]
        if(!app) return null
        else return app.getAppId()
    }
    static pushIdToName(id,name){
        AppEnum.map.set(id,name)
    }
    static idToName(id){
        return AppEnum.map.get(id)
    }
    static APPNAMES = ['SETTING','FOLDER_MANAGER']
}